home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2000 #4
/
Amiga Plus CD - 2000 - No. 4.iso
/
Tools
/
Text
/
HTML
/
HTMLEXT
/
GUI
/
func.history
< prev
next >
Wrap
Text File
|
2000-04-19
|
2KB
|
86 lines
G4C
; $VER: func.history Rev.005 © by Juan Manuel Wehrli 1999 - 2000
WINBIG 0 0 640 15 ""
WinType 00001000
WinBackground IMAGE IBBG 0
;Winout "NIL:"
xOnLoad
SetGad #This 101 HIDE
GuiOpen #This
xOnOpen
Update #This 1 "Aktuelle Site: $*SITENAME"
xOnClose
GuiQuit #This
xListview 0 0 500 10 "" int FILE 0 SHOW
GadID 101
Text 0 0 350 15 "Keine Aktivität ..." 100 BOX
GadFont "xHelvetica.font" "11" 000
GadID 1
xButton 350 0 70 15 "Überprüfen"
GadFont "xHelvetica.font" "11" 000
lvuse HTMLEXT 1
EXTRACT %SiteHistFile CLEAN hfile
EXTRACT %SiteFTPOL CLEAN ftpdir
SetVar olhfile $hfile
RepVar olhfile $*SITEDIR $ftpdir CI
INFO FILE $olhfile
SetVar olsize $$FILE.LENGTH
INFO FILE $hfile
SetVar lsize $$FILE.LENGTH
if $olsize == $lsize
EZREQ "History wurde nicht geändert!" "Weiter" NIL
elseif $olsize > $lsize
EZREQ "Die online History wurde verändert soll sie runtergeladen werden?" "Ja|Nein" abfr1
if $abfr1 = 1
cli 'copy $olhfile TO $hfile NOREQ'
endif
elseif $olsize < $lsize
EZREQ "Die lokale History wurde verändert soll sie runtergeladen werden?" "Ja|Nein" abfr2
if $abfr2 = 1
cli 'copy $hfile TO $olhfile NOREQ'
endif
endif
xButton 420 0 70 15 "Bearbeiten"
GadFont "xHelvetica.font" "11" 000
lvuse HTMLEXT 1
EXTRACT %SiteHistFile CLEAN hfile
cli 'rx $*EDITOR OPENNEW $hfile'
CLI 'rx $*BROWSER OPEN $hfile'
SetVar .htmlext $*BROWSERWIN
CLI 'rx $*BROWSER WINSET'
xButton 490 0 70 15 "Versenden"
GadFont "xHelvetica.font" "11" 000
lvuse #This 101
lvchange "htmlext:settings/users.prefs"
lvsearch $*USER ci first
if $$lv.line != ""
lvgo #$$lv.line
EXTRACT %UserMail CLEAN .htmlext.from
EXTRACT %UserName CLEAN username
cli 'echo "$*SITENAME Update" >t:htmlext/mail.txt'
cli 'echo "Durchgeführt durch: $username" >>t:htmlext/mail.txt'
lvuse HTMLEXT 1
EXTRACT %SiteMail CLEAN .htmlext.emad
EXTRACT %SiteSubj CLEAN .htmlext.subj
EXTRACT %SiteHistFile CLEAN sfile
SetVar .htmlext.Site $*SITENAME
cli 'rx $*MAILER WRITEHIST $sfile'
else
EZREQ "Ihr Benutzereintrag wurde nicht komplett eingegeben!" "Werde dies nachholen" NIL
guiload "htmlext:gui/func.users"
endif
xButton 560 0 80 15 "[_X] Schliessen"
GadFont "xHelvetica.font" "11" 000
GadKey "x"
GuiQuit #This